<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>index_chart</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</head>
	<body style="font-size: 13px;">
		<div>
			<div id="chart1"></div>
			<s:if test="code==1">
			</s:if><s:elseif test="code==2">
			</s:elseif><s:elseif test="code==3">
			</s:elseif>
			<s:property value="" escape="false"/>
		</div>
		<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="../js/Raphael-2.1.0.js"></script>
		<script type="text/javascript" src="../js/plugin/jquery_chart-1.1.0.js"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				var code = <s:property value="code"/>;
				var num = <s:property value="num"/>;
				var unit = <s:property value="unit"/>;
				var xn = '<s:property value="xn"/>';
				var xc = '<s:property value="xc"/>';
				var data = <s:property value="@com.dzk.cp.util.CpUtils@toJson(data)" escape="false"/>;
				var tx, ty, tl;
				if (xc) {
					tl = (code == 1 ? "山东" : (code == 2 ? "江西" : "广东")) + "11选5任选(" + xc + ")遗漏走势图";
					tx = "第次";
					ty = "遗漏期数";
				} else {
					tl = (code == 1 ? "山东" : (code == 2 ? "江西" : "广东")) + "11选5任选" + xn + "出现次数走势图";
					tx = "所有号";
					ty = "出现次数";
				}
				var ops = {data: data, tl: tl, tx: tx, ty: ty};
				$("#chart1").chart(ops);
			});
			
		</script>
	</body>
</html>
